exports.config.beforeLaunch   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 5

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
c 1
b 0
f 0
nc 1
nop 0
dl 0
loc 5
rs 9.4285
1
// Protractor configuration file, see link for more information
2
// https://github.com/angular/protractor/blob/master/docs/referenceConf.js
3
4
/*global jasmine */
5
var SpecReporter = require('jasmine-spec-reporter');
6
7
exports.config = {
8
  allScriptsTimeout: 11000,
9
  specs: [
10
    './e2e/**/*.e2e-spec.ts'
11
  ],
12
  capabilities: {
13
    'browserName': 'chrome'
14
  },
15
  directConnect: true,
16
  baseUrl: 'http://localhost:4200/',
17
  framework: 'jasmine',
18
  jasmineNodeOpts: {
19
    showColors: true,
20
    defaultTimeoutInterval: 30000,
21
    print: function() {}
22
  },
23
  useAllAngular2AppRoots: true,
24
  beforeLaunch: function() {
25
    require('ts-node').register({
26
      project: 'e2e'
27
    });
28
  },
29
  onPrepare: function() {
30
    jasmine.getEnv().addReporter(new SpecReporter());
31
  }
32
};
33